From: Sam Reed Date: Fri, 1 Oct 2010 11:21:46 +0000 (+0000) Subject: Few explicit class variable definitions X-Git-Tag: 1.31.0-rc.0~34717 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=3013d5baf602a594b37c35a90f498e45c5e01e31;p=lhc%2Fweb%2Fwiklou.git Few explicit class variable definitions --- diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 5d6ad089fc..ba20114725 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -40,6 +40,11 @@ class ApiQueryLogEvents extends ApiQueryBase { parent::__construct( $query, $moduleName, 'le' ); } + private $fld_ids = false, $fld_title = false, $fld_type = false, + $fld_action = false, $fld_user = false, $fld_userid = false, + $fld_timestamp = false, $fld_comment = false, $fld_parsedcomment = false, + $fld_details = false, $fld_tags = false; + public function execute() { $params = $this->extractRequestParams(); $db = $this->getDB(); diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index a6b2713341..ec3f66e323 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -36,6 +36,8 @@ if ( !defined( 'MEDIAWIKI' ) ) { */ class ApiQueryUserInfo extends ApiQueryBase { + private $prop = array(); + public function __construct( $query, $moduleName ) { parent::__construct( $query, $moduleName, 'ui' ); } @@ -46,8 +48,6 @@ class ApiQueryUserInfo extends ApiQueryBase { if ( !is_null( $params['prop'] ) ) { $this->prop = array_flip( $params['prop'] ); - } else { - $this->prop = array(); } $r = $this->getCurrentUserInfo();